package com.kinghood.productcenter.dao.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kinghood.productcenter.common.model.dao.base.BaseBrandDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kinghood.productcenter.common.model.dto.base.ListBrandQueryDTO;
import com.kinghood.productcenter.common.model.vo.base.BrandSelectVO;
import com.kinghood.productcenter.common.model.vo.base.BrandVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 基础选项-品牌 Mapper 接口
 * </p>
 *
 * @author KingHood
 * @since 2023-12-20
 */
public interface BaseBrandMapper extends BaseMapper<BaseBrandDO> {

    /**
     * 品牌列表
     *
     * @param page  页
     * @param param 参数
     * @author jp
     * @date 2023/12/21
     */
    Page<BrandVO> listBrand(Page<Object> page,@Param("param") ListBrandQueryDTO param);

    /**
     * 品牌下拉
     *
     * @author jp
     * @date 2024/01/02
     */
    List<BrandSelectVO> getAllBrand();
}
